package com.ctshk.rpc.booking.req.unsubscribe.page;


import com.ctshk.common.model.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 供应商退订
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-25
 */
@Data
@ApiModel(value = "SupplierUnsubscribePageReq对象", description = "供应商退订")
public class SupplierUnsubscribePageReq extends PageReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "退订单号")
    private String cancellationNumber;

    @ApiModelProperty(value = "供应商预订单号")
    private String supplierOrderNumber;

    @ApiModelProperty(value = "发起时间 from,格式:yyyy-MM-dd")
    private LocalDate fromGmtCreate;

    @ApiModelProperty(value = "发起时间 to,格式:yyyy-MM-dd")
    private LocalDate toGmtCreate;

    @ApiModelProperty(value = "退订单发起人Id")
    private Long createId;

    @ApiModelProperty(value = "供应商Id")
    private Long supplierId;

    @NotNull(message = "预订类型不能为空,枚举SupplierVerifyStatusEnum")
    @ApiModelProperty(value = "预订类型,枚举SupplierVerifyStatusEnum")
    private Long reserveTypeId;

    @NotNull(message = "对账状态不能为空,枚举SupplierVerifyStatusEnum")
    @ApiModelProperty(value = "对账状态,枚举SupplierVerifyStatusEnum")
    private Integer verifyStatus;

    @NotNull(message = "是否使用团号不能为空(1:是,2:否)")
    @ApiModelProperty(value = "是否使用团号(1:是,2:否),枚举SupplierGroupNumberEnum")
    private Integer isUseGroupNumber;
}
